package fiuba.algo3.algothief.modelo;

import java.io.IOException;
import java.util.ArrayList;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;

import org.xml.sax.SAXException;

public class Sargento extends Policia {

	public Sargento(){
		this.velocidad = 1500;
		this.rango = "Sargento";
		this.cantidadDeArrestos = 20;
	}
		
	public Pista PedirPistaEn(Lugar unLugar) {
		this.entrarALugar();
		return (unLugar.getPista(this));
		
	}
	
	public Ladron atraparAlLadron() throws ParserConfigurationException, TransformerException, SAXException, IOException {
		ListaLadrones lista = new ListaLadrones();
		ArrayList<Ladron> nuevaLista = new ArrayList<Ladron>();
		lista.setearLadrones(nuevaLista);
		int posAleatoria;
		posAleatoria = (int)(Math.random()*(10-8+1)+8);
		return (nuevaLista.get(posAleatoria));	
	}
}
